
using AutoMapper;
using Yozeev.PhoneBooks.Books;
using Yozeev.PhoneBooks.Books.Dtos;

namespace Yozeev.PhoneBooks.Books.Mapper
{

    /// <summary>
    /// 配置Book的AutoMapper
    /// </summary>
    internal static class BookMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap<Book, BookListDto>();
            configuration.CreateMap<BookListDto, Book>();

            configuration.CreateMap<BookEditDto, Book>();
            configuration.CreateMap<Book, BookEditDto>();

        }
		
				
		//// custom codes
		// TODO 自定义代码

		// TODO 自定义代码

		// TODO 自定义代码

		// TODO 自定义代码

		
		
		
		//// custom codes end
    }
}
